-
Notifications
You must be signed in to change notification settings - Fork 77
[WIP] LM Workload #860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
[WIP] LM Workload #860
Conversation
Dev -> main
…ency into lm_workload
… pytorch calls detatch
|
Adding some TODOs:
|
…JAX and PyTorch, also unify initialization to be the same in both
…uding learned scaling factor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second round of small requested changes.
Perhaps something we should discuss, we need a more descriptive name for the workload. E.g. fineweb_edu_lm. What do you all think? @Niccolo-Ajroldi @rka97
| @@ -0,0 +1,397 @@ | |||
| """ | |||
| Originally based on code from the NanoDO repository under the Apache 2.0 license: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this file to models.py to be consistent with the pattern in the other workload definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| @@ -0,0 +1,344 @@ | |||
| """ | |||
| Originally based on the plainLM codebase: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename this file to models.py to be consistent with the other workload definitions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
algoperf/workloads/workloads.py
Outdated
| 'workload_path': 'librispeech_deepspeech/librispeech', | ||
| 'workload_class_name': 'LibriSpeechDeepSpeechNormAndSpecAugWorkload', | ||
| }, | ||
| 'lm': {'workload_path': 'lm/lm', 'workload_class_name': 'LmWorkload'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have all the important implementation details figured out should we pick a more descriptive name for the workload? I am thinking perhaps 'fineweb_edu_lm'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fineweb_edu_lm or finewebedu_lm make sense, matching the other workload names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to finewebedu_lm.
| elif workload_name == 'mnist': | ||
| return 16 | ||
| elif workload_name == 'lm': | ||
| return 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work for bsz 64 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I just made it smaller because I was debugging with v100s. Changed it back to 64.
| elif workload_name == 'cifar': | ||
| return 128 | ||
| elif workload_name == 'lm': | ||
| return 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work for bsz 64 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I just made it smaller because I was debugging with v100s. Changed it back to 64.
…ency into lm_workload
This is for the LM workload.